package com.infosystem.demo.models;

import com.infosystem.demo.helpers.DepartmentListEnum;

import java.sql.Date;

/** Data Transfer Object, Input
 * 用于接收前端传来的数据
 * @property name
 * @property govId
 * @property department
 * @property enrollDate
 */
public class EmployeeDTOI {
    private String name;
    private String govId;
    private DepartmentListEnum department;
    private Date enrollDate;

    public EmployeeDTOI() {
    }

    public EmployeeDTOI(String name, String govId, DepartmentListEnum department, Date enrollDate) {
        this.name = name;
        this.govId = govId;
        this.department = department;
        this.enrollDate = enrollDate;
    }

    public String getName() {return name;}
    public void setName(String name) {this.name = name;}

    public String getGovId() {return govId;}
    public void setGovId(String govId) {this.govId = govId;}

    public String getDepartment() {return department.getTitle();}
    public void setDepartment(DepartmentListEnum department) {this.department = department;}

    public Date getEnrollDate() {return enrollDate;}
    public void setEnrollDate(Date enrollDate) {this.enrollDate = enrollDate;}

}
